package com.junxian.demo.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import com.junxian.demo.common.AlarmTypeConverter;

import java.util.Date;

/**
 * @author sunjx
 * @program heredata
 * @description VActiveAlarmVO类
 * @date 2020-09-27 18:47
 */
public class VActiveAlarmVO extends BaseRowModel {

    /**
     * 告警事件ID
     * @ExcelProperty : value，设置该字段的名称；index，设置该字段的列数
     * @ExcelIgnore : 忽略这个字段
     */
    @ExcelProperty(value = {"告警事件ID"}, index = 0)
    private String eventId;

    @ExcelProperty(value = {"告警信息"}, index = 4)
    private String eventTitle;

    @ExcelProperty(value = {"告警时间"}, index = 1)
    private Date generantTime;

    @ExcelProperty(value = {"告警等级"}, index = 5, converter = AlarmTypeConverter.class)
    private String alarmType;

    @ExcelProperty(value = {"告警次数"}, index = 6)
    private Integer repeatNum;

    @ExcelProperty(value = {"告警指标"}, index = 3)
    private String kpiName;

    @ExcelProperty(value = {"告警设备"}, index = 2)
    private String hostName;

    public String getEventId() {
        return eventId;
    }

    public void setEventId(String eventId) {
        this.eventId = eventId;
    }

    public String getEventTitle() {
        return eventTitle;
    }

    public void setEventTitle(String eventTitle) {
        this.eventTitle = eventTitle;
    }

    public Date getGenerantTime() {
        return generantTime;
    }

    public void setGenerantTime(Date generantTime) {
        this.generantTime = generantTime;
    }

    public String getAlarmType() {
        return alarmType;
    }

    public void setAlarmType(String alarmType) {
        this.alarmType = alarmType;
    }

    public Integer getRepeatNum() {
        return repeatNum;
    }

    public void setRepeatNum(Integer repeatNum) {
        this.repeatNum = repeatNum;
    }

    public String getKpiName() {
        return kpiName;
    }

    public void setKpiName(String kpiName) {
        this.kpiName = kpiName;
    }

    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }
}
